package ro.upt.dcda.web;

import javax.servlet.http.HttpServlet;

import ro.upt.dcda.pricezone.s1.requests.RegisterRequest;

/**
 * Servlet implementation class RegisterServlet
 */
public class RegisterServlet extends HttpServlet {

	private String name;
	private String usermail;
	private String password;

	public String execute() throws Exception {
		RegisterRequest register = new RegisterRequest();
		if (register.work(name, usermail, password)) {
			return "success";
		} else {
			return "failed";
		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUsermail() {
		return usermail;
	}

	public void setUsermail(String usermail) {
		this.usermail = usermail;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
		
	}
}
